window.addEvent('load',function()
{
    //斑马表
    var list=new ZebraTable(document.getElementById('List'));
    {
        list.Color_1='#ffffff';
        list.Color_2='#f6f6f6';
        list.Color_3='#ebeff9';
        list.Render('tbody');
    }
    list=null;

    //全选
    $$('#SelectAll').addEvent('click',function(){
        Checkbox.SelectAll('ID');
    });

    //全不选
    $$('#UnSelectAll').addEvent('click',function(){
        Checkbox.UnSelectAll('ID');
    });

    
    //添加
     $$('#NewsKeywordsAdd').addEvent('click',function()
    {
        if($('Name_Add').value=='')
        {
			malert('关键字不能为空');	  
        }
	  	else
	  	{
			$('Form1').action='add.action.php';
            $('Form1').submit();  
	  	}
    });
    
});

function Edit(ID)
{
	var Names=$('Name_'+ID).value;
	window.location='edit.action.php?id='+ID+'&name='+Names;       
}